<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@page import="java.util.ArrayList"%>
<%@page import="model.bean.TourTemplate"%><head>
<style>
#main{
float:left;
margin-left:100px;
overflow: hidden;
width:350px;
height: auto;
border: 1px solid #AC8853;
border-radius:5px;
}
.bag {
overflow: hidden;
height:auto;
}
#main *{
border-radius:5px;
border-color: #AC8853;
font-style: oblique;
font-family: Serif;
}
#main .lb {
width: 100px;
display:block;
float:left;
margin: 3px 3px 3px 3px;
line-height: 25px;
}
#main .ip,.ip option {
width: 220px;
display:block;
float:left;
margin: 3px 3px 3px 3px;
line-height: 25px;
}
}
</style>
</head>
<jsp:include page="common/header.jsp"></jsp:include>
<div id="page-wrapper">
<div id="update-box" class="update">
			<h3>Tour update Panel</h3>
            <form method="post" class="update-content" action="TourUpdateServlet">
            <div id = "main">
            	
            	<div class = "bag">
            	<label class = "lb" >Mã Tour Mẫu: </label>
            	<select name="tourTempIndex"  type="text" class = "ip">
            	<%  ArrayList<TourTemplate> listTempTour = (ArrayList<TourTemplate>)request.getAttribute("listTempTour"); 
            		if ( listTempTour != null) {
            	    	for(int i = 0; i < listTempTour.size(); i++){
            	%><option value = "<%=listTempTour.get(i).getTempTourIndex()%>"><%=listTempTour.get(i).getTempTourName() %></option>
            	<%	    }
            		}%>
            	</select></div>
            	<div class = "bag">
	            	<label class = "lb">Ngày đi: </label> 
    	        	<input name="dayStart" type="text" placeholder="Day Start" class = "ip"/>
        	    </div>
            	<div class = "bag">
            		<label class = "lb" >Ngày Về: </label> 
            		<input name="dayEnd" type="text" placeholder="Day End" class = "ip"/>
            	</div>
            	<div class = "bag">
            		<label class = "lb" >Điểm đến: </label> 
            		<input name="target" type="text" placeholder="Target" class = "ip"/>
            	</div>
            	<div class = "bag">
            		<input type = "hidden" name = "tourIndex" value = "<%=request.getParameter("index")%>"/>
            		<input type="submit" value = "Excute Update Tour" name = "process" class = "ip"/>
            	</div>
            </div>
            </form>
        </div>
</div>
<jsp:include page="common/footer.jsp"></jsp:include>